<?php
//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBlogLinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('blog_links', function (Blueprint $table) {
			$table->comment = '友情链接表';
            $table->increments('id')->comment('友情链接ID');
			$table->string('name')->default('')->comment('名称');
			$table->string('url')->default('')->comment('链接');
			$table->tinyInteger('status')->default(1)->comment('显示状态:0=隐藏,1=显示');
			$table->integer('sort')->default(1)->comment('排序');
            $table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('blog_links');
    }
}
